Forum Activity for @douglas

douglas
@douglas
09/10/16 07:14:06AM
2,806 posts

Advise on Creating a Custom Page


Using Jamroom

You would have to have a separate page for each category_1 etc... in order to use the meta tag module.

Are you trying to add keywords and descriptions to each category? Or are you trying to change the page title for each category?

Thanks!
douglas
@douglas
09/10/16 07:03:30AM
2,806 posts

How to add the who is online for the entire site?


Using Jamroom

pch:
By the way, have you found the fix for the "Whos Online" that doesn't show for logout users and visitors?
Thanks

The "Who Is Online" function is setup to NOT show to non logged in users. A workaround would be to add an if statement to show the login and signup links to non logged in users, which could inspire them to create an account or at least login to the site.

{if jrUser_is_logged_in()}

Who is online code goes here...

{else}

Signup and Login links go here...

{/if}

Hope this helps!
updated by @douglas: 09/11/16 01:23:34AM
douglas
@douglas
09/10/16 06:52:01AM
2,806 posts

Scroll To Top Button not working on all the pages


Using Jamroom

pch:
Hi Steve,
As said in my other post, it works well. Thanks a lot for your help.
Although it works, as i slightly modified it, I just wanted to confirm with an advanced programmer/coder that the code structure is right (correct).
Hope it makes sense now
Once again, thanks

Which skin are you trying to add this to?
douglas
@douglas
09/09/16 10:33:18AM
2,806 posts

Editing Activity Timeline


Design and Skin Customization

Strumelia:
Quote: that way the loop isn't trying to run for everyone, just the admin user.
Douglas, the way you have it written above...will that work for the Profile Admins as well as the master admin then?

I think so, the master admin is an admin user, I've not tested this though.

If not just add in the master admin like this:

{if jrUser_is_admin() || jrUser_is_master()}
{if isset($_items)}
{foreach $_items as $item}
  <a href="{$jamroom_url}/timeline/delete/id={$item._item_id}">X</a>
{/foreach}
{/if}
{/if}

Hope this helps!
douglas
@douglas
09/09/16 09:40:21AM
2,806 posts

Advise on Creating a Custom Page


Using Jamroom

Create a jrAudio_index.tpl and add this code:

{jrCore_module_url module="jrAudio" assign="murl"}
{jrCore_include template="header.tpl"}

<div class="block">

    <div class="title">
        {jrSearch_module_form fields="audio_title,audio_album,audio_genre"}
        <h1>{jrCore_lang module="jrAudio" id=41 default="Audio"}</h1>
    </div>

    <div class="block_content">
        {if isset($_post.option) && strlen($_post.option) > 0}
            {jrCore_list module="jrAudio" order_by="_item_id numerical_desc" search1="audio_category = `$_post.option`" pagebreak=10 page=$_post.p pager=true}
        {else}
            {jrCore_list module="jrAudio" order_by="_item_id numerical_desc" pagebreak=10 page=$_post.p pager=true}
        {/if}
    </div>

</div>

{jrCore_include template="footer.tpl"}

upload it to your active skin directory and then create the URL's that Paul posted and that should work.

Here is the jrVideo_index.tpl code:

{jrCore_module_url module="jrVideo" assign="murl"}
{jrCore_include template="header.tpl"}

<div class="block">

    <div class="title">
        {jrSearch_module_form fields="video_title,video_description"}
        <h1>{jrCore_lang module="jrVideo" id=39 default="Videos"}</h1>
    </div>

    <div class="block_content">
        {if isset($_post.option) && strlen($_post.option) > 0}
            {jrCore_list module="jrVideo" order_by="_created numerical_desc" search1="video_category = `$_post.option`" pagebreak=10 page=$_post.p pager=true}
        {else}
            {jrCore_list module="jrVideo" order_by="_created numerical_desc" pagebreak=10 page=$_post.p pager=true}
        {/if}
    </div>

</div>
{jrCore_include template="footer.tpl"}

Hope this helps!
douglas
@douglas
09/09/16 06:38:37AM
2,806 posts

Editing Activity Timeline


Design and Skin Customization

Your welcome, I think it would be better if it were written like this instead:

{if jrUser_is_admin()}
{if isset($_items)}
{foreach $_items as $item}
  <a href="{$jamroom_url}/timeline/delete/id={$item._item_id}">X</a>
{/foreach}
{/if}
{/if}

that way the loop isn't trying to run for everyone, just the admin user.
douglas
@douglas
09/09/16 06:34:56AM
2,806 posts

Cloned language and ISkin 4


Design and Skin Customization

sekeri:
So should I clone the the language again when I switch to a new skin or copy the file from the previous skin? I am asking because I dont want module files to be deleted/overwritten with the new cloning.

You'll want to clone the language file from the new skin.

Hope this helps!
douglas
@douglas
09/09/16 06:33:35AM
2,806 posts

Editing Activity Timeline


Design and Skin Customization

derrickhand300:
Do you happen top see the syntax error in the above?

Other than the missing closing foreach tag?

{foreach $_items as $item}
{if jrUser_is_admin()}
  <a href="{$jamroom_url}/timeline/delete/id={$item._item_id}">X</a>
{/if}
{/foreach}

Hope this helps!
douglas
@douglas
09/07/16 05:30:43AM
2,806 posts

getting an error with Mastro 4 skin with Annika live wall Audio buttons


Design and Skin Customization

nate:
First what the hell is that image? What page is it?

Looks like the profile timeline.

EDIT:
Correction, that looks like Paul's Annika module.
updated by @douglas: 09/07/16 05:36:08AM
douglas
@douglas
09/05/16 06:21:37AM
2,806 posts

Advise on Creating a Custom Page


Using Jamroom

You'll want to use something other than audio and video as those URL's are assigned to the modules as the default URL.

Have you tried www.site/music/categoryname_1 and www.site/music_video/categoryname_1 instead?

The above would require you to create a music.tpl and music_video.tp but this would keep it from conflicting with the audio and video default URL's.

Hope this helps!
  89